home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 119
/
(Vol 119) Nov 09 2010.iso
/
Games
/
magic_balls.swf
/
scripts
/
DefineButton2_156
/
BUTTONCONDACTION on(keyPress Right).as
< prev
next >
Wrap
Text File
|
2010-11-09
|
639b
|
24 lines
on(keyPress "<Right>"){
nowshooting = eval("_root.ball" add _root.totalballs);
if(getProperty(nowshooting, _X) < 305)
{
setProperty(nowshooting, _X, getProperty(nowshooting, _X) + 25);
setProperty(_root.nextball, _X, getProperty(nowshooting, _X));
setProperty(_root.arrow, _X, getProperty(nowshooting, _X));
_root.startposition += 25;
tellTarget("_root.char")
{
play();
}
wheelturn = 1;
while(wheelturn < 9)
{
tellTarget("_root.wheel" add wheelturn)
{
play();
}
wheelturn++;
}
}
}